package com.carb.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@Schema(description = "新增服务项目传递的数据模型")
public class ProjectAddDTO implements Serializable {

    @Schema(description = "服务项目名称",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "服务项目类型id",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private Long projectTypeId;

    @Schema(description = "服务项目价格 (单位为分)",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer price;

    @Schema(description = "服务项目描述",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String description;

    @Schema(description = "服务项目物品关联信息",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private List<ProjectItemAddDTO> projectItems = new ArrayList<>();

}
